package org.icress.fusion.moc

import java.sql.Date;

import grails.converters.JSON

class AjaxController {
    
    def ajaxService

    def index = { 
		render view : '/moc/ajax/index'
	}
	
	def moctb = {
		def input = params.term
		render ajaxService.moctb(input) as JSON
    }
    
    def mocti = {
        
        def input = params.term
        render ajaxService.mocti(input) as JSON
    }
    
    def workshop = {
        render ajaxService.workshop() as JSON
    }
}
